package com.ssyt.examinationsystem.util;

import java.util.List;
import java.util.Map;

public class CollectionUtils {
    /**
     * 判断一个集合是否为空
     *
     * @param list
     * @return
     */
    public static boolean isEmptyForList(List<?> list) {
        return list != null && list.size() > 0;
    }

    public static boolean isEmptyForMap(Map<?, ?> map) {
        return map != null && map.size() > 0;
    }
}
